<template>
  <div class="content-block block-2">
    <div class="info-head">{{ title }}</div>
    <div class="info-content">
      <v-chart :option="chartOption" style="width: 100%;height:300px;"></v-chart>
    </div>
  </div>
</template>

<script>
export default {
  name: 'grid-item-two',
  props: ['title'],
  computed: {
    themeColor () {
      return this.$store.state.user.theme
    },
    chartOption () {
      return {
        radar: {
          indicator: [
            { name: '综合能源消费量（万吨标准煤）', max: 6500 },
            { name: '工业总产值（万元）', max: 16000 },
            { name: '用电量（万千瓦时）', max: 30000 },
            { name: '能源消费总量（万吨标准煤）', max: 38000 },
            { name: '行业', max: 52000 },
          ]
        },
        series: [
          {
            name: 'Budget vs spending',
            type: 'radar',
            areaStyle: {
              color: this.themeColor,
              opacity: 0.2
            },
            itemStyle: {
              color: this.themeColor
            },
            data: [
              {
                value: [4200, 3000, 20000, 35000, 50000, 18000],
                name: 'Allocated Budget'
              },
            ]
          }
        ]
      }
    }
  }
}
</script>

<style scoped>

</style>
